<template>
  <div class="left-container">
    <h3>Left 组件</h3>
    <p>{{ counts  }}</p>
  </div>
</template>

<script>
import bus from '@/utils/eventBus'  
export default {
  data(){
    return{
      counts:1
    }
  },
  created(){
    bus.$on('share',(count)=>{
      console.log(count);
      this.counts = count
    })
  }
}
</script>

<style lang="less">
.left-container {
  padding: 0 20px 20px;
  background-color: orange;
  min-height: 250px;
  flex: 1;
}
</style>
